package com.lianxi.compont;



import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@Slf4j
public class TestPostConstruct {



    @PostConstruct
    public void init(){
        log.info("打印日志....");
        System.out.println("postConstuuce....启动了！");
    }
}
